<script setup>
import {onMounted, ref, getCurrentInstance} from 'vue';


import { useRouter } from 'vue-router';

const router = useRouter();



const goMain = () => {
  console.log('goMain');
  router.push({name: 'StationList'});
};


onMounted(() => {

});
</script>
<template>
  <div>
    <!-- 导航标签页  -->
    <el-tabs type="border-card">
      <el-tab-pane label="User">
        <h1>
          把自己写的vue放到这里，标签自己也可以添加
        </h1>
      </el-tab-pane>
      <el-tab-pane label="Config">Config</el-tab-pane>
      <el-tab-pane label="Role">Role</el-tab-pane>
      <el-tab-pane label="Task">Task</el-tab-pane>
      <el-tab-pane label="主页">
        <el-button type="primary" size="small" @click="goMain">主页</el-button>
      </el-tab-pane>

    </el-tabs>

  </div>
</template>
<style scoped>
</style>